package com.xf.common.security.starter.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @author JoeyLiu
 * @create 2022-04-20 15:41
 */
public interface RbacService {
    /***
     * 用户权限比较
     * @param request
     * @param authentication
     * @return
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
